﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;

namespace BusinessLogicLayer
{
    public class PhieuThuTienBO
    {
        private PhieuThuTienDAL dal;

        public PhieuThuTienBO()
        {
            try
            {
                dal = new PhieuThuTienDAL();
            }
            catch (Exception e)
            {
                //throw new BusinessLogicException();
            }
        }
        public double GetTongTienCuaKhachHangTraTrongThang(string thang, string nam, int maKhachHang)
        {
            double kq = 0;
            try
            {
                kq = dal.GetTongTienCuaKhachHangTraTrongThang(thang, nam, maKhachHang);
            }
            catch (Exception)
            {
                return kq;
                throw;
            }
            return kq;
        }
        public DataTable layDanhSachPhieuThu()
        {
            DataTable s = null;
            try
            {
                s = dal.layDanhSachPhieuThu();
            }
            catch (Exception)
            {
                throw;
            }
            return s;
        }
    }
}
